//package com.xb.system.service.impl;
//
//import cn.hutool.core.util.ObjectUtil;
//import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
//
//import com.xb.model.WxUser;
//import com.xb.model.domain.UsersInfo;
//import com.xb.system.mapper.WxUserMapper;
//import com.xb.system.service.WxUserService;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.stereotype.Service;
//
//import javax.annotation.Resource;
//import java.util.Collections;
//import java.util.List;
//
///**
// * (WxUser)表服务实现类
// *
// * @author makejava
// * @since 2024-08-02 14:53:25
// */
//@Slf4j
//@Service
//public class WxUserServiceImpl extends ServiceImpl<WxUserMapper, UsersInfo> implements WxUserService {
//
//
////    @Override
////    public List<WxUser> getByPhone(String phone) {
////        LambdaQueryWrapper<WxUser> wrapper = new LambdaQueryWrapper<>();
////        wrapper.eq(WxUser::getPhone, phone);
////        List<WxUser> wxUsers = this.list(wrapper);
////        if (ObjectUtil.isNotEmpty(wxUsers)) {
////            return wxUsers;
////        }
////        return Collections.emptyList();
////    }
//
//
//    @Override
//    public List<WxUser> getByConditions(String phone, String name) {
//        LambdaQueryWrapper<WxUser> wrapper = new LambdaQueryWrapper<>();
//
//        // 根据传入的条件动态添加查询
//        if (phone != null && !phone.isEmpty()) {
//            wrapper.eq(WxUser::getPhone, phone);
//        }
//        if (name != null && !name.isEmpty()) {
//            wrapper.eq(WxUser::getName, name);
//        }
//
//        // 执行查询
//        List<WxUser> wxUsers = this.list(wrapper);
//
//        // 返回查询结果，若没有结果则返回空列表
//        return ObjectUtil.isNotEmpty(wxUsers) ? wxUsers : Collections.emptyList();
//    }
//
//
//}
//
